﻿<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
    request.setAttribute("basePath", basePath);
%>
<%@ include file="/resources/js/easyui/taglibs.jsp" %>
<%@ include file="/resources/js/easyui/_easyui.jsp" %>
<!DOCTYPE>
<html>
<head>
    <link href="../resources/css/style.css" rel="stylesheet" type="text/css"/>
</head>

<body style="background:url(../resources/images/web/topbg.gif) repeat-x;">

<div class="topleft" style="float:left;">
    <img src="../resources/images/web/mslog.png" title="系统首页"/>
</div>

<div class="topright" style="width:250px; float:right;margin-top:30px;">
    <ul style="display:inline-block;float:right;margin-right:30px;">
        <li><a style="font-size:20px;color:#fff;" id="GC_User_logout" href="javascript:void(0);" target="_parent">退出</a></li>
    </ul>

    <div class="user" style="display:inline-block; float:right;margin-right:30px;">
        <span style="font-size:20px;color:#fff;">欢迎您，${param.userName}</span>
    </div>

</div>

</body>
<script type="text/javascript">
    $(function () {
        //顶部导航切换
        $("#GC_User_logout").click(function () {
            if (confirm("是否退出系统?")) {
                $.ajax({
                    url: '${basePath}signout',
                    type: 'DELETE',
                    async: true,
                    error: function (response) {
                        ViewHelper.func.ajaxErrorMessage(response);
                    },
                    success: function (ret) {
                        parent.window.location.reload(true);
                    }
                });
            }
        });
    });
</script>
</html>
